/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package db2docbook;

/**
 *
 * @author alhshk
 */
public class Type {

  final private String typeName;
  final private int dateType;
  final private boolean autoInc;
  final private String createParms;

  public Type(String typeName, int dateType, boolean autoInc, String createParms) {
    this.typeName = typeName;
    this.dateType = dateType;
    this.autoInc = autoInc;
    this.createParms = createParms;
  }

  public boolean isAutoInc() {
    return autoInc;
  }

  public String getCreateParms() {
    return createParms;
  }

  public int getDateType() {
    return dateType;
  }

  public String getTypeName() {
    return typeName;
  }

  @Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    final Type other = (Type) obj;
    if (this.typeName != other.typeName && (this.typeName == null || !this.typeName.equals(other.typeName))) {
      return false;
    }
    return true;
  }

  @Override
  public int hashCode() {
    int hash = 5;
    hash = 89 * hash + (this.typeName != null ? this.typeName.hashCode() : 0);
    return hash;
  }
}
